﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;

using Whoever.Framework.Base;
using Whoever.Framework.Attributes;
using Whoever.Health.Business;

namespace Whoever.Health.Business.Entities
{
    public class Contact : BusinessEntity
    {
        [Key]
        [IdentityField]
        public int Id { get; set; }
        [GridDisplayable]
        public string Name { get; set; }
        [GridDisplayable]
        public string Surname { get; set; }
        public string Description { get; set; }
        public string WebsiteURL { get; set; }
        public string CompanyName { get; set; } // to be a class
        public DateTime Since { get; set; }

        [Required]
        public int TypeId { get; set; }
        [Required]
        public int StatusId { get; set; }

        public virtual ContactType Type { get; set; }
        public virtual ContactStatus Status { get; set; }
        public virtual ICollection<Document> Documents { get; set; }
        public virtual ICollection<Address> Addresses { get; set; }
        public virtual ICollection<Mail> Mails { get; set; }
        public virtual ICollection<Phone> Phones { get; set; }
    }
}
